package com.xinou.daily_report.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinou.common.base.database.Page;
import com.xinou.common.config.jackson.annotation.XoFileSerializerAnnotation;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.context.annotation.Bean;

import java.time.LocalDate;

/**
 * @author lcc
 * @create 2021-06-22
 * @注意 本内容仅限于dev414内部传阅，禁止外泄以及用于其他的商业目的
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class DailyCommentInfoVO {

    private Long id;

    private Long commentUserId;

    private Long replyUserId;

    @ApiModelProperty(value = "评论人")
    private String commentUser;

    @XoFileSerializerAnnotation(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "评论人头像")
    private String commentUserIcon;

    @ApiModelProperty(value = "回复人")
    private String replyUser;

    @ApiModelProperty(value = "回复人头像")
    private String replyUserIcon;

    @ApiModelProperty(value = "是否回复")
    private Boolean isReply;

    @ApiModelProperty(value = "是否必回复")
    private Boolean needReply;

    @ApiModelProperty(value = "评论内容")
    private String commentMessage;

    @ApiModelProperty(value = "回复内容")
    private String replyMessage;

    @ApiModelProperty(value = "评论时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone="GMT+8")
    private LocalDate commentDate;

    @ApiModelProperty(value = "回复时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone="GMT+8")
    private LocalDate replyDate;

    private Boolean canReply;

}
